<div class="container_16">

<?php $this->widget( 'ext.EChosen.EChosen' ); ?>
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableClientValidation'=>true,
	'clientOptions'=>array(
		'validateOnSubmit'=>false,
	),
)); ?>
<?php $this->widget('RJGFormErrors', array('form' => $model,'model'=>$model, 'caption' => Yii::t('public','Validation errors')));?>
<div class="grid_16">
      <h1>Sign Up</h1>
      <p>Sign up for a single account to manage all your sites, editors and pages. Pro accounts are $28 per month.</p>
        <p class="note">Fields with <span class="required">*</span> are required.</p>                
        
        <div>
         	<?php echo $form->labelEx($model,'name'); ?>
      		<?php echo $form->textField($model,'name'); ?>      		
        </div>

        <div class="required">
          	<?php echo $form->labelEx($model,'email'); ?>
      		<?php echo $form->textField($model,'email'); ?>      		 
        </div>

        <div class="required">
        	<?php echo $form->labelEx($model,'nickname'); ?>
      		<?php echo $form->textField($model,'nickname'); ?>      		
        </div>
        
        <div class="required">
        	<?php echo $form->labelEx($model,'password'); ?>
      		<?php echo $form->passwordField($model,'password'); ?>      		
        </div>
        
        <div class="required">
        	<?php echo $form->labelEx($model,'passwordConfirm'); ?>
      		<?php echo $form->passwordField($model,'passwordConfirm'); ?>      		
        </div>
        
         <div class="required">
        	 <?php echo $form->labelEx($model,'verifyCode'); ?>
        		<div>
        		<?php $this->widget('CCaptcha'); ?>
        		<?php echo $form->textField($model,'verifyCode'); ?>
        		</div>
        		<div class="hint">Please enter the letters as they are shown in the image above.
        		<br/>Letters are not case-sensitive.</div>
        		
        </div>

        <div class="inline">
          <label for="user_spam">Receive email updates about CushyCMS</label>
      		<?php echo $form->checkBox($model,'spam'); ?>
      		<?php echo $form->error($model,'spam'); ?>
          
        </div>

        <div class="inline">
          <label for="terms">Agree to the <a target="_blank" href="/en/static/terms">Terms of Service</a></label>
      		<?php echo $form->checkBox($model,'terms'); ?>
      		<?php echo $form->error($model,'terms'); ?>
          
        <input type="hidden" name="lang" value="<?php echo Yii::app()->language ?>" readonly="readonly">  
        </div>
        <button class="submit signUp" type="submit">
          Get Started        </button>

</div>
  </div>
<?php $this->endWidget(); ?>